//-----------------------------------------------------------------------
// <copyright file="a_BrandService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_BrandService
    {
        #region a_Brand

        public static void Createa_Brand(a_Brand a_Brand)
        {            
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                a_BrandDAO.Createa_Brand(a_Brand);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Brand(a_Brand a_Brand)
        {            
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                a_BrandDAO.Updatea_Brand(a_Brand);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Brand(int brandID)
        {            
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                a_BrandDAO.Deletea_Brand(brandID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Brand Geta_Brand(int brandID)
        {            
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                return a_BrandDAO.Geta_Brand(brandID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_BrandCollection Geta_BrandList(a_BrandColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                return a_BrandDAO.Geta_BrandList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_BrandCollection Geta_BrandList(a_BrandColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                return a_BrandDAO.Geta_BrandList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_BrandCollection Geta_BrandList_alphabet(string mychar, a_BrandColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                return a_BrandDAO.Geta_BrandList_alphabet(mychar,orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_BrandCollection Geta_BrandList_alphabet(string mychar,a_BrandColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_BrandDAO a_BrandDAO = new a_BrandDAO();
                return a_BrandDAO.Geta_BrandList_alphabet(mychar, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion
    }
}